home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / ArrayIndexOutOfBoundsException.java < prev    next >
Text File  |  1998-09-22  |  2KB  |  60 lines

  1. /*
  2.  * @(#)ArrayIndexOutOfBoundsException.java    1.14 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.lang;
  16.  
  17. /**
  18.  * Thrown to indicate that an array has been accessed with an 
  19.  * illegal index. The index is either negative or greater than or 
  20.  * equal to the size of the array. 
  21.  *
  22.  * @author  unascribed
  23.  * @version 1.14, 07/01/98
  24.  * @since   JDK1.0
  25.  */
  26. public
  27. class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException {
  28.     /**
  29.      * Constructs an <code>ArrayIndexOutOfBoundsException</code> with no 
  30.      * detail message. 
  31.      *
  32.      * @since   JDK1.0
  33.      */
  34.     public ArrayIndexOutOfBoundsException() {
  35.     super();
  36.     }
  37.  
  38.     /**
  39.      * Constructs a new <code>ArrayIndexOutOfBoundsException</code> 
  40.      * class with an argument indicating the illegal index. 
  41.      *
  42.      * @param   index   the illegal index.
  43.      * @since   JDK1.0
  44.      */
  45.     public ArrayIndexOutOfBoundsException(int index) {
  46.     super("Array index out of range: " + index);
  47.     }
  48.  
  49.     /**
  50.      * Constructs an <code>ArrayIndexOutOfBoundsException</code> class 
  51.      * with the specified detail message. 
  52.      *
  53.      * @param   s   the detail message.
  54.      * @since   JDK1.0
  55.      */
  56.     public ArrayIndexOutOfBoundsException(String s) {
  57.     super(s);
  58.     }
  59. }
  60.